import React, { useState } from 'react';
import PopTab from '../PopTab';
import LabelInput from '../LabelInput';

export default function Param(props) {
  const data = props.value.label
    ? { value: props.value.label, label: props.value.value }
    : { value: props.value.value };
  return (
    <PopTab data={props.optionData}>
      <LabelInput {...data} isInput={true} placeholder={props.placeholder} />
    </PopTab>
  );
}
